using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;

namespace KPIS.GERP.Models.SYS
{
    [DataContract, Table("sys_exec_pos_group")]
    public class ExecPosGroup
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity), Column("exec_pos_group_seq")]
		[DataMember, Display(Name = "ExecPosGroupId", ResourceType = typeof(Resources.ExecPosGroupResource))]
        public int ExecPosGroupId { get; set; }

		[DataMember, Display(Name = "ExecPosGroupName", ResourceType = typeof(Resources.ExecPosGroupResource)), Column("exec_pos_group_name")]
        public string ExecPosGroupName { get; set; }

        [DataMember ]
        public IEnumerable<ExecPosGroupDtls> ExecPosGroupDtlses { get; set; }

        #region

        [DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.ExecPosGroupResource)), Column("created_by")]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.ExecPosGroupResource)), Column("created_when")]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.ExecPosGroupResource)), Column("updated_by")]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.ExecPosGroupResource)), Column("updated_when")]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        #endregion
    }
}